export default {
    getUrlValue(value) {
        var queryParams = new URLSearchParams(location.search);
        var hashParams = new URLSearchParams(location.hash.split("?")[1]);
        if (!queryParams && !hashParams) {
            return "";
        }

        if (queryParams.has(value)) {
            return queryParams.get(value);
        }

        if (hashParams.has(value)) {
            return hashParams.get(value);
        }

        return "";
    }

}